//
//  ProcessMonitor.h
//  ProcessTimeBudget
//
//  Created by isempty.chiu on 2010/9/13.
//  Copyright 2010 LifeMotion. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface ProcessMonitor : NSObject {
	NSString *activeProcessName_;
	NSTimeInterval activeDuration_;
	NSDate *activeStartTime_;

	NSTimer *timer_;
	NSInteger runningTime_;
}

+(ProcessMonitor*) sharedProcMonitor;
+(BOOL) isRunningUnitTest;

- (void) runMonitor:(BOOL)bStart;
- (void) forceActiveChanged;

@property (readonly) NSInteger RunningTime;
@property (readonly) NSString* ActiveProcessName;
@property (readonly) NSTimeInterval ActiveDuration;
@property (readonly) NSDate* ActiveStartTime;
@end
